package org.oims.simpleserver.services.impl;

import org.oims.simpleserver.mapper.MessageMapper;
import org.oims.simpleserver.services.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Calendar;

@Service
public class MessageServiceImpl implements MessageService {
    private MessageMapper messageMapper;
    @Override
    public void clearOutDateFriendMsgs(Calendar time) {
        messageMapper.deleteOutDateFriendMsgs(time);
    }

    @Autowired
    public void setMessageMapper(MessageMapper messageMapper) {
        this.messageMapper = messageMapper;
    }
}
